import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import App from './App.vue'
import router from './router'
// import '@u/setRem'
import './assets/css/reset.css'
import 'lib-flexible'
import './assets/fonts/iconfont.css'
import 'vant/es/toast/style';
import 'vant/es/dialog/style';
import { 
  Button, Icon, Tabbar,TabbarItem, Swipe, SwipeItem, Grid, GridItem, Card,
  List, PullRefresh, NavBar, ActionBar, ActionBarIcon, ActionBarButton,Popup,
  Stepper,SubmitBar,Checkbox, SwipeCell,Search  
  
} 
  from 'vant'


const app = createApp(App)
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
app.use(pinia)
app.use(router)
app
.use(Button)
.use(Icon)
.use(Tabbar)
.use(TabbarItem)
.use(Swipe)
.use(SwipeItem)
.use(Grid)
.use(GridItem)
.use(Card)
.use(List)
.use(PullRefresh)
.use(NavBar)
.use(ActionBar)
.use(ActionBarIcon)
.use(ActionBarButton)
.use(Popup)
.use(Stepper)
.use(SubmitBar)
.use(Checkbox)
.use(SwipeCell)
.use(Search)
app.mount('#app')
